﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("Recurso")]
    public class Recurso
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [MaxLength(200)]
        [Required]
        public String Nome { get; set; }
        
        [MaxLength(3000)]
        public String Comentarios { get; set; }

        [Required]
        public long Sistema { get; set; }
        
        [Required]
        public long TipoRecurso { get; set; }
        
        [MaxLength(1000)]
        public String Localizacao { get; set; }
        
        [Required]
        public Boolean ItemAdministrativo { get; set; }
    }
}